package org.esk.dablog.web.forms.forum;

import org.esk.dablog.web.forms.AddEntryForm;
import org.esk.dablog.web.util.RequestUtils;
import org.esk.dablog.web.elements.CalendarBean;
import org.esk.dablog.model.Entry;
import org.esk.dablog.model.Author;
import org.esk.dablog.model.forum.ForumTopicEntry;
import org.esk.dablog.model.entries.Ride;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.validation.BindException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Calendar;
import java.util.Date;

/**
 * This class implements "add topic" task
 * User: esk
 * Date: 08.12.2006
 * Time: 20:26:31
 * $Id:$
 */
public class AddTopicForm extends AddEntryForm {


    protected ModelAndView showForm(HttpServletRequest request, HttpServletResponse response, BindException errors) throws Exception {
        ModelAndView show = super.showForm(request, response, errors);      
        return show;
    }


    protected void processEntry(HttpServletRequest request, Entry object) throws Exception {
    }

    protected Object formBackingObject(HttpServletRequest httpServletRequest) throws Exception {
        return new ForumTopicEntry();
    }
}
